Creating Geometric Shapes
QuickDraw GX provides a number of ways for you to create a new shape.The functions described in this section allow you to specify a shape's initial geometry when creating the shape. For example, the
GXNewShapeVector
function allows you to specify a shape type and an array of values. The function creates a new shape of the specified type and uses the array of values to initialize the new shape's geometry.The
GXNewPoint
,GXNewLine
,GXNewCurve
,GXNewRectangle
,GXNewPolygons
, andGXNewPaths
functions all create a new shape of a specific type. These functions allow you to specify the shape's initial geometry.You can also use the
GXNewShape
function to create shapes. This function, which is described in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects, allows you to create a shape by specifying only the shape type; the geometry of the new shape is set to its initial state--all geometric points are (0.0, 0.0) and polygons and paths have 0 contours. You can customize the shape's geometry using the functions described in "Getting and Setting Shape Geometries" beginning on page 2-119.
Subtopics
- GXNewShapeVector
- GXNewPoint
- GXNewLine
- GXNewCurve
- GXNewRectangle
- GXNewPolygons
- GXNewPaths
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help